'use strict';
const init=require('./init');
const reader=require('./reader');
const book=require('./book');
const app=require('../WebApp');

app.route('/init','post',init.InitDB);

app.route('/addBook','post',book.AddBook);
app.route('/addBookCnt','post',book.AddBookCnt);
app.route('/delBookCnt','post',book.DelBookCnt);
app.route('/changeBookInfo','post',book.ChangeBookInfo);
app.route('/queryBook','post',book.QueryBook);

app.route('/addReader','post',reader.AddReader);
app.route('/delReader','post',reader.DelReader);
app.route('/changeReaderInfo','post',reader.ChangeReaderInfo);
app.route('/queryReader','post',reader.QueryReader);
app.route('/queryUnreturnedBook','post',reader.QueryUnreturnedBook);
app.route('/borrowBook','post',reader.BorrowBook);
app.route('/returnBook','post',reader.ReturnBook);
app.route('/queryExceedReaders','post',reader.QueryExceedReaders);
